<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/config/c.tld" prefix="c"%>
<%@ taglib prefix="fn" uri="/WEB-INF/config/fn.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/config/fmt.tld"%>
<%@ taglib uri="/WEB-INF/config/Pagination.tld" prefix="p"%>
<!DOCTYPE html>
<html>
<head>
	<title>
			${infoA.name}
	</title>
</head>
<body>
	<div id="page-content" class="archive-page container">
		<div class="row">
			<div class="col-md-12">
				<div class="pageTit">
					<div class="dian"></div>
					<div class="xiax">${infoA.name}</div>
					<span class="hei">
						<a href="index.html" style="color: black">
							首页
						</a> 
						&nbsp;-&nbsp;
						${infoA.name}
					</span>
				</div>
				<form action="info/search.html" id="myform" method="post">
					<c:forEach items="${paging.data}" var="data">
						<div>
							<div class="col-md-2">
								<div style="font-size: 26px;margin-top: 13px;"><fmt:formatDate value="${data.createDate}"  pattern="MM/dd" /></div>
								<fmt:formatDate value="${data.createDate}"  pattern="yyyy" />
							</div>
							<div class="col-md-10"  style="padding-top: 10px;">
								<a href="info/view/${data.id}.html">
									${data.cnName}
								</a>
								<p style="padding-top:8px;">
									<c:set var="testStr" value="${data.cnContent}"/>
							        <c:choose>
							        	<c:when test="${fn:length(testStr) > 80}">
							            	<c:out value="${fn:substring(testStr, 0, 80)}..." />
							         	</c:when>
							         	<c:otherwise>
							            	<c:out value="${testStr}" />
							         	</c:otherwise>
							        </c:choose>
								</p>
							</div>
						</div>
						<hr class="line">
					</c:forEach>
					<div class="box">
						<center>
							<p:outpage pageSize="${paging.pageSize}"
									totalPage="${paging.totalPage}"
									curPage="${paging.curPage}" />
						</center>
					</div>
				</form>
			</div>
			<!-- <div id="sidebar" class="col-md-4"> 
				<iframe src="index/right.html" width="100%" height="700px" name="rightIFrame"  scrolling="no" frameborder="no"></iframe>
			</div> -->
		</div>
	</div>
</body>
</html>